<div class="panel panel-default panel-intro">{:build_heading()}
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div class="bootstrap-table">
                        <div class="fixed-table-toolbar">
                            <div class="bs-bars pull-left">
                                <div id="toolbar" class="toolbar" style="position: relative;">
                                    <a href="javascript:;" class="btn btn-primary btn-refresh" title="刷新">
                                        <i class="fa fa-refresh"></i>
                                    </a>
                                    <a href="{:url('Jishu/sedit')}" class="btn btn-success btn-add" title="添加">
                                        <i class="fa fa-plus"></i>添加</a>
                                </div>
                            </div>
                            <div class="columns-right pull-right" style="margin-top:10px;margin-bottom:10px;">
                                <button class="btn btn-default" type="button" name="commonSearch" title="普通搜索">
                                    <i class="glyphicon glyphicon-search"></i>
                                </button>
                            </div>
                            <div class="pull-right search">
                                <input class="form-control" type="text" placeholder="搜索"></div>
                        </div>
                        <div class="fixed-table-container" style="padding-bottom: 0px;">
                            <div class="fixed-table-body">
                                <table id="table" class="table table-striped table-bordered table-hover" width="100%">
                                    <thead>
                                        <tr>
                                            <th style="text-align: center; vertical-align: middle; ">
                                                <div class="th-inner ">ID</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle; ">
                                                <div class="th-inner ">应用部署名称</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle; ">
                                                <div class="th-inner ">应用语言</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle; ">
                                                <div class="th-inner ">周期（小时）</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle; ">
                                                <div class="th-inner ">操作</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody data-listidx="0">
                                    {volist name="list" id="vo"}
                                      {php}
                                        $map['id']=array("in",$vo['tech_id']);
                                        $tech=db('app_language')->where($map)->select();
                                      {/php}
                                     <tr data-index="{$key+1}">
                                            <td style="text-align: center; vertical-align: middle;">
                                                {$key+1}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle;">
                                                {$vo.name}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle;">
                                                {volist name="tech" id="t"}
                                                 {if condition="$key eq 1"},{/if}
                                                 {$t.name}
                                                {/volist}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle;">
                                               {$vo.cycle}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle;">
                                                <a href="{:url('Jishu/sedit',['id'=>$vo['id']])}" class="btn btn-xs btn-success">
                                                    编辑
                                                </a>
                                                <a href="{:url('Jishu/sdelete',['id'=>$vo['id']])}" class="btn btn-xs btn-danger">
                                                    删除
                                                </a>
                                            </td>
                                        </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                            <div class="fixed-table-pagination" style="display: block;">
                                {$list->render()}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>